package fr.guy.aurelie.eportfolio.client.presenter;

import com.google.gwt.event.shared.HandlerManager;
import com.google.gwt.user.client.ui.HasWidgets;
import com.google.gwt.user.client.ui.Widget;

import fr.guy.aurelie.eportfolio.client.EPortfolioServiceAsync;

public class EPortfolioPresenter implements Presenter {

	public interface Display {
		Widget asWidget();
	}
	
	private final EPortfolioServiceAsync rpcService;
	private final HandlerManager eventBus;
	private final Display display;
	
	public EPortfolioPresenter(EPortfolioServiceAsync rpcService, HandlerManager eventBus, Display view) {
		this.rpcService = rpcService;
		this.eventBus = eventBus;
		this.display = view;
	}

	@Override
	public void go(HasWidgets container) {
		bind();
		container.clear();
		container.add(display.asWidget());
	}

	private void bind() {
		// TODO Auto-generated method stub
		
	}
}
